home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
program
/
ccdl150l.zip
/
ALLOC
/
REALLOC.C
< prev
next >
Wrap
C/C++ Source or Header
|
1996-07-06
|
173b
|
11 lines
#include <stdlib.h>
#include <string.h>
void *realloc(void *buf, size_t size)
{
char *ptr;
ptr = malloc(size);
memcpy(ptr,buf,size);
free(buf);
return ptr;
}